package models

import (

	"go-admin/common/models"

)

type HostInformation struct {
    models.Model
    
    IpAddress string `json:"ipAddress" gorm:"type:varchar(50);comment:IP地址"` 
    Port string `json:"port" gorm:"type:int;comment:端口"` 
    Hostname string `json:"hostname" gorm:"type:varchar(100);comment:主机名"` 
    OperatingSystem string `json:"operatingSystem" gorm:"type:varchar(50);comment:操作系统"` 
    Location string `json:"location" gorm:"type:varchar(100);comment:本地名"` 
    Status string `json:"status" gorm:"type:enum('Active','Inactive','Maintenance');comment:状态"` 
    Description string `json:"description" gorm:"type:text;comment:描述"` 
    models.ModelTime
    models.ControlBy
}

func (HostInformation) TableName() string {
    return "host_information"
}

func (e *HostInformation) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *HostInformation) GetId() interface{} {
	return e.Id
}